<%= form_required_explanation %>

<%= form.text_field :title, value: form_presenter.title, data: { controller: "character-counter" } %>
<%= text_editor_for_proposal_body(form) %>

<% if @form.geocoding_enabled? %>
  <%= form.geocoding_field :address %>
<% end %>

<% if @form.taxonomy_filters&.any? %>
  <% @form.taxonomy_filters.each do |filter| %>
    <%= filter_taxonomy_items_select_field form, :taxonomies, filter %>
  <% end %>
<% end %>

<% if component_settings.attachments_allowed? %>
  <%= form.attachment :documents,
                      multiple: false,
                      label: t("decidim.proposals.collaborative_drafts.new.add_file"),
                      button_label: t("decidim.proposals.collaborative_drafts.new.add_file"),
                      button_edit_label: t("decidim.proposals.collaborative_drafts.new.edit_file"),
                      button_class: "button button__lg button__transparent-secondary w-full",
                      help_text: t("attachment_legend", scope: "decidim.proposals.collaborative_drafts.edit"),
                      help_i18n_scope: "decidim.forms.file_help.file" %>
<% end %>
